package com.aaa.demo111;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test11105 {
    public static void main(String[] args) throws InterruptedException {
        DemoDaemon demoDaemon = new DemoDaemon();
        demoDaemon.setDaemon(true);
        demoDaemon.start();

        DemoDaemon demoDaemon1 = new DemoDaemon();
        demoDaemon1.start();
    }
}
class DemoDaemon extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 20;i++) {
            System.out.println(Thread.currentThread().getName() + "==="+i);
}
    }
}